package com.haiersen.sign.common;
/**
 * 分页Bean
 * @author Quzhimou
 *
 */
public class Pagination {
	private int pageNo;      		// 当前页 
	private int pageSize;         	// 每页记录条数
	private int totalCount;         // 总条数
	
	public Pagination() {}
	
	public Pagination(int pageSize, int pageNo, int totalCount) {
		super();
		this.pageSize = pageSize;
		this.pageNo = pageNo;
		this.totalCount = totalCount;
	}

	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	
	public int getStart() {
		return (pageNo-1)*pageSize;
	}
}